package com.swiftride.service.impl;

import cn.hutool.core.bean.BeanUtil;
import com.baomidou.mybatisplus.extension.service.impl.ServiceImpl;
import com.swiftride.mapper.CustomerFineMapper;
import com.swiftride.pojo.domain.CustomerFine;
import com.swiftride.pojo.param.CustomerFineParam;
import com.swiftride.service.ICustomerFineService;
import org.springframework.stereotype.Service;

/**
 * <p>
 * 乘客罚款 服务实现类
 * </p>
 *
 * @author wy
 * @since 2024-07-31
 */
@Service
public class CustomerFineServiceImpl extends ServiceImpl<CustomerFineMapper, CustomerFine> implements ICustomerFineService {

    @Override
    public void saveCustomerFine(CustomerFineParam customerFineParam) {
        CustomerFine customerFine = new CustomerFine();
        customerFine.init();
        BeanUtil.copyProperties(customerFineParam, customerFine, false);
        this.save(customerFine);
    }
}
